package com.watson.utils;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DatabaseHelper extends SQLiteOpenHelper {
    public static final String USER = "create table user(" + "id integer primary key autoincrement,"
            + "username text," + "password text," + "time text," + "longitude text," + "latitude text)";
    private Context mContext;

    public DatabaseHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int vertion) {
        super(context, name, factory, vertion);
        mContext = context;
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        System.out.println(USER);
        db.execSQL(USER);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    }
}

